<?php
	include("secure_db.php");
	session_start();
	include("connection_mysqli.php");
	$req=$connexion->prepare('DELETE FROM Product WHERE ID=?');
	$req->bind_param("i",Secure::db($_POST['ID']));
	$result=$req->execute();
	//TODO remove picture
	
	$req->close();
	$connexion->close();
	
	header('Location: store-myproducts.php');
?>
